home *** CD-ROM | disk | FTP | other *** search
Text File | 1987-09-14 | 1.3 KB | 57 lines | [TEXT/MPS ] |
- ### MixMake version 1.
- ### Uses only Consulair Exec application runner
- ### Script file to build programs with
- ### MacC or TML systems
- ### W.G. Powell 1987 for MacTutor
-
- ### Initialize variables
- # Exec and MacC input and scratch files
- Set Efile "Exec.Job"
- Set Cfile "MacC.Files"
- Set Lfile "Link.Tmp"
- Delete -i "{Efile}" "{Cfile}" "{Lfile}"
- # Application run flags
- Set RunMacC 0
- Set RunLink 0 # Consulair
- Set RunTMLLink 0
- # Make's working directory
- Set MakeWD "`Directory`"
- Export MakeWD
-
- ### Run the Make tool
- make {"Parameters"} > MakeOutApps ≥ Dev:StdOut
-
- ### Construct the input for the Exec application
- Execute MakeOutApps
- Delete MakeOutApps
- If ({RunMacC} == 1)
- Echo "C {Cfile} Exec Done">>"{Efile}"
- End
- If ({RunLink} == 1 || {RunTMLLink} == 1)
- Catenate "{Lfile}" >>"{Efile}"
- Delete -i "{Lfile}"
- End
- Unset RunMacC
- Unset RunLink
- Unset RunTMLLink
- Unset Lfile
- Unset Cfile
- Unset MakeWD
-
- ### Set up the Resume tasks for after the applications
- ### Primarily for error handling
- Set PostApp "{MPW}UserResume"
- Echo "Unset Efile" >"{MPW}UserResume"
- Catenate "{MPW}MakeSupport:MixMakeResume" >>"{MPW}UserResume"
-
- ### If Diagnostic menu item is still around from
- ### an earlier build cycle, delete it.
- Set __oldExit {Exit}
- Set Exit 0
- DeleteMenu File "Open Diagnostics…" ≥ Dev:Null
- Set Exit {__oldExit}
- Unset __oldExit
-
- ### Run applications using Consulair's Exec
- Exec "{Efile}"
-